package com.accounting.juanjuan.entity;

import java.util.List;

/**
 * 结果数据实体类
 *
 * @Author xxj
 * @Date 2024/1/26 15:43
 * @Version 1.0
 */
public class ResultData {
    /**
     * 未处理前的数据金额总和
     */
    private String initAmountTotal;

    /**
     * 处理后的数据金额总和
     */
    private String resultAmountTotal;

    /**
     * 数据处理前总和是否和出后相同
     */
    private boolean equalStatue;

    /**
     * 处理后的最终数据
     */
    private List<List<String>> resultExcelData;

    public String getInitAmountTotal() {
        return initAmountTotal;
    }

    public String getResultAmountTotal() {
        return resultAmountTotal;
    }


    public boolean isEqualStatue() {
        return equalStatue;
    }


    public List<List<String>> getResultExcelData() {
        return resultExcelData;
    }

    public void setResultExcelData(List<List<String>> resultExcelData) {
        this.resultExcelData = resultExcelData;
    }

    public void setValueOnComputeValue(ComputeAccountingData computeValue) {
        this.initAmountTotal = String.valueOf(computeValue.getInitAmountTotal());
        this.resultAmountTotal = String.valueOf(computeValue.getResultAmountTotal());
        this.equalStatue = computeValue.isEqualStatue();
    }
}
